package com.wxl.common.pop

import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager
import com.lxj.xpopup.core.BasePopupView
import com.wxl.common.R
import com.wxl.common.adapter.ReportAdapter
import kotlinx.android.synthetic.main.pop_report_layout.view.*

/**
 * create file time : 2021/4/6
 * create user : wxl
 * subscribe :
 */
class ReportPop : BasePopupView{

    constructor(context: Context) : super(context)


    override fun getPopupLayoutId(): Int {
        return R.layout.pop_report_layout
    }

    override fun onCreate() {
        super.onCreate()
        reportTypeView.layoutManager = LinearLayoutManager(context)
        val reportAdapter = ReportAdapter()
        reportTypeView.adapter = reportAdapter
        reportSubmit.setOnClickListener { dismiss() }
        reportClose.setOnClickListener { dismiss() }
    }
}